<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">

<!-- BEGIN HEAD -->

<head>

<meta charset="utf-8" />

<title>编辑学生信息</title>

<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<meta content="" name="description" />
<meta th:content="${session.authorities}" id="authority" />

<!-- BEGIN GLOBAL MANDATORY STYLES -->
<link href="/media/css/bootstrap.min.css" rel="stylesheet"
	type="text/css" />
<link href="/media/css/bootstrap-responsive.min.css" rel="stylesheet"
	type="text/css" />
<link href="/media/css/font-awesome.min.css" rel="stylesheet"
	type="text/css" />
<link href="/media/css/style-metro.css" rel="stylesheet" type="text/css" />
<link href="/media/css/style.css" rel="stylesheet" type="text/css" />
<link href="/media/css/style-responsive.css" rel="stylesheet"
	type="text/css" />

<link rel="stylesheet" type="text/css" href="/media/css/datepicker.css" />
<link rel="stylesheet" type="text/css" href="/media/css/chosen.css" />

<link rel="shortcut icon" href="/media/image/favicon.ico" />
</head>

<!-- END HEAD -->

<!-- BEGIN BODY -->

<body class="">



	<!-- BEGIN CONTAINER -->

	<div class="">
		<!-- BEGIN PAGE -->
		<div class="page-content" style="margin: 0 50px;">
			<!-- BEGIN PAGE CONTAINER-->
			<div class="">
				<!-- BEGIN PAGE CONTENT-->
				<div class="row-fluid">
					<div class="span12" style="padding: 5px 10px;">
						<!-- BEGIN FORM-->
						<form class="form-horizontal" id="stu_edit_form">
							<h3 class="form-section" style="margin-left: 10px;">
								<i class="icon-bookmark"> 学员基本资料 </i>
							</h3>
							<div class="row-fluid">
								<div class="span4">
									<div class="control-group">
										<label class="control-label">学员姓名:</label>
										<div class="controls">
											<input id="txtStuName" type="text" class="m-wrap span10" name="stuName"
												th:value="${student.stuName}"><span
												class="help-inline" style="color: red;">*</span>
										</div>
									</div>
								</div>
								<!--/span-->
								<div class="span4">
									<div class="control-group">
										<label class="control-label">学员昵称:</label>
										<div class="controls">

											<input type="text" class="m-wrap span12" name="stuNickName"
												th:value="${student.stuNickName}">
										</div>
									</div>
								</div>
								<div class="span4">
									<div class="control-group">
										<label class="control-label">学员生日:</label>
										<div class="controls">
											<div class="input-append date date-picker"
												data-date-format="yyyy-mm-dd" data-date-viewmode="years">
												<input class="m-wrap m-ctrl-medium date-picker" readonly=""
													size="16" type="text" value="2017-12-13"
													th:value="${student.stuBirth != null} ?${#calendars.format(student.stuBirth,'yyyy-MM-dd')}:'2017-4-28'"
													name="stuBirth"><span class="add-on"><i
													class="icon-calendar"></i></span>
											</div>
										</div>
									</div>
								</div>
								<!--/span-->
							</div>
							<!--/row-->
							<div class="row-fluid">
								<div class="span3">
									<div class="control-group">
										<label class="control-label">学员性别:</label>
										<div class="controls">
											<select class="m-wrap span12" name="stuSex">
												<option value="1" th:selected="${student.stuSex} eq 1">男</option>
												<option value="2" th:selected="${student.stuSex} eq 2">女</option>
											</select>
										</div>
									</div>
								</div>
								<div class="span4">
									<div class="control-group">
										<label class="control-label">手机号码:</label>
										<div class="controls">
											<div class="input-prepend">
												<div class="btn-group">
													<button class="btn dropdown-toggle" data-toggle="dropdown">
														大陆 <span class="caret"></span>
													</button>
													<ul class="dropdown-menu">
														<input type="hidden" name="" class="dropdown_select" />
														<li><a href="#" data-value="86">大陆</a></li>
														<li><a href="#" data-value="852">香港</a></li>
														<li><a href="#" data-value="853">澳门</a></li>
														<li><a href="#" data-value="886">台湾</a></li>
													</ul>
												</div>
												<input class="m-wrap medium" type="text" name="stuPhone"
													th:value="${student.stuPhone}">

											</div>

										</div>

									</div>
								</div>
								<div class="span4">
									<div class="control-group">

										<label class="control-label">家长姓名:</label>

										<div class="controls">

											<div class="input-append">

												<input class="m-wrap medium" type="text"
													name="stuParentName" th:value="${student.stuParentName}">

												<div class="btn-group">

													<button class="btn dropdown-toggle" data-toggle="dropdown"
														th:text="${#strings.isEmpty(student.stuParentRelationship)}?'家长关系':${student.stuParentRelationship}">

														家长关系 <span class="caret"></span>

													</button>

													<ul class="dropdown-menu">
														<input type="hidden" name="" class="dropdown_select"
															name="stuParentRelationship"
															th:value="${student.stuParentRelationship}" />
														<li><a href="#" data-value="爸爸">爸爸</a></li>

														<li><a href="#" data-value="妈妈">妈妈</a></li>

														<li><a href="#" data-value="爷爷">爷爷</a></li>
														<li><a href="#" data-value="奶奶">奶奶</a></li>
														<li class="divider"></li>

														<li><a href="#" data-value="叔叔">叔叔</a></li>
														<li><a href="#" data-value="阿姨">阿姨</a></li>

													</ul>

												</div>

											</div>

										</div>

									</div>
								</div>

								<!--/span-->
							</div>
							<div class="row-fluid">
								<div class="span4">
									<div class="control-group">
										<label class="control-label">备用号码:</label>
										<div class="controls">
											<input type="text" class="m-wrap span12"
												name="stuBackupPhone" th:value="${student.stuBackupPhone}">
										</div>
									</div>
								</div>
								<div class="span4">
									<div class="control-group">
										<label class="control-label">QQ:</label>
										<div class="controls">
											<input type="text" class="m-wrap span12" name="stuQq"
												th:value="${student.stuQq}">
										</div>
									</div>
								</div>
								<div class="span4">
									<div class="control-group">
										<label class="control-label" >固定电话:</label>
										<div class="controls">
											<input type="text" class="m-wrap span12" name="stuTelephone"
												th:value="${student.stuTelephone}">
										</div>
									</div>
								</div>
							</div>
							<div class="row-fluid">
								<div class="span4">
									<div class="control-group">
										<label class="control-label">Email:</label>
										<div class="controls">
											<input type="email" class="m-wrap span12" name="stuEmail"
												th:value="${student.stuEmail}">
										</div>
									</div>
								</div>

								<div class="span8">
									<div class="control-group">
										<label class="control-label">所属地区:</label>
										<div class="controls">
											<select class="m-wrap span5" id="stu_area" name="stuAreaFirst">
												<option value="0">请选择</option>
												<option value="" th:each="area:${areaList}"
													th:value="${area.id}" th:text="${area.areaName}" th:selected="${student.stuAreaFirst} eq ${area.id}">仁寿区</option>

											</select> <select class="m-wrap span7" id="stu_child_area" name="stuAreaSecond" th:attr="data-id=${student.stuAreaSecond}">

												<option value="0">请选择</option>
											</select>
										</div>

									</div>

								</div>
							</div>
							<div class="row-fluid">
								<div class="span4">
									<div class="control-group">
										<label class="control-label">微信昵称:</label>
										<div class="controls">
											<input type="text" class="m-wrap span12" name="stuWechatName"
												th:value="${student.stuWechatName}">
										</div>
									</div>
								</div>
								<div class="span8">
									<div class="control-group">
										<label class="control-label">家庭住址:</label>
										<div class="controls">
											<input type="text" class="m-wrap span12"
												name="stuHomeAddress" th:value="${student.stuHomeAddress}">
										</div>
									</div>
								</div>
							</div>
							<!--/row-->
							<h3 class="form-section" style="margin-left: 10px;">
								<i class="icon-bookmark"> 学员高级资料</i>
							</h3>
							<div class="row-fluid">
								<div class="span4">
									<div class="control-group">
										<label class="control-label">学员来源:</label>
										<div class="controls">
											<select class="m-wrap span12" name="stuSource">
												<option value="0">请选择</option>
												<option value="1" th:value="${source.id}"
													th:each="source:${sourceList}"
													th:text="${source.sourceName}"
													th:selected="${student.stuSource} eq ${source.id}">广告宣传</option>
											</select>
										</div>
									</div>
								</div>
								<div class="span4">
									<div class="control-group">
										<label class="control-label">市场人员:</label>
										<div class="controls">
											<select class="m-wrap span12" name="stuMarketPerson">
												<option value="0">请选择</option>
												<option value="2" th:each="person:${marketPersonList}" th:value="${person.id}" th:selected="${student.stuMarketPerson} eq ${person.id}" th:text="${person.staffRealName}">孙俪</option>
												
											</select>
										</div>
									</div>
								</div>
								<div class="span4">
									<div class="control-group">
										<label class="control-label">重要程度:</label>
										<div class="controls">
											<select class="m-wrap span12" name="stuImportance">
												<option value="0">请选择</option>
												<option value="1" th:value="${importance.id}"
													th:each="importance:${importanceList}"
													th:text="${importance.importanceParam}"
													th:selected="${student.stuImportance} eq ${importance.id}">一般</option>
											</select>
										</div>
									</div>
								</div>
							</div>
							<div class="row-fluid">
								<div class="span4">
									<div class="control-group">
										<label class="control-label">学员状态:</label>
										<div class="controls">
											<select class="m-wrap span12" name="stuState">
												<option value="0">请选择</option>
												<option value="2" th:value="${state.id}"
													th:each="state:${stateList}" th:text="${state.stateParam}"
													th:selected="${student.stuState} eq ${state.id}"></option>
											</select>
										</div>
									</div>
								</div>
								<div class="span4">
									<div class="control-group">
										<label class="control-label">意向课程:</label>
										<div class="controls">
											<input type="text" class="m-wrap span12"
												name="stuIntentionCourse"
												th:value="${student.stuIntentionCourse}">
										</div>
									</div>
								</div>
								<div class="span4">
									<div class="control-group">

										<label class="control-label">当前班级:</label>
										<div class="controls">

											<select data-placeholder="Your Favorite Football Teams"
												class="chosen span12" multiple="multiple" tabindex="6" name="stuCurrentClass">

												<option value=""></option>

												<optgroup label="编程">
													<option value="5">PHP少年编程班</option>
													<option value="3">java天才少年班</option>
												</optgroup>

												<optgroup label="美术">

													<option value="6" selected>达芬奇附体版</option>
													<option value="7">梵高速成班</option>
												</optgroup>
											</select>

										</div>
									</div>
								</div>
							</div>
							<div class="row-fluid">
								<div class="span4">
									<div class="control-group">
										<label class="control-label">首次接触:</label>
										<div class="controls">
											<select class="m-wrap span12" name="stuFirstContact">
												<option value="0">请选择</option>
												<option value="1" th:value="${contact.id}"
													th:each="contact:${contactList}"
							
													th:text="${contact.contactParam}"
													th:selected="${student.stuFirstContact} eq ${contact.id}">电话</option>

											</select>
										</div>
									</div>
								</div>
								<div class="span4">
									<div class="control-group">
										<label class="control-label">录入日期:</label>
										<div class="controls">
											<div class="input-append date date-picker"
												data-date-format="yyyy-mm-dd" data-date-viewmode="years">
												<input class="m-wrap m-ctrl-medium date-picker" readonly=""
													size="16" type="text" value="" name="stuJoinDate"
													th:value="${student.stuJoinDate != null} ?${#calendars.format(student.stuJoinDate,'yyyy-MM-dd')}:'2017-4-28'"><span
													class="add-on"><i class="icon-calendar"></i></span>
											</div>
										</div>
									</div>
								</div>
								<div class="span4">
									<div class="control-group">
										<label class="control-label">所属顾问:</label>
										<div class="controls">
											<select class="m-wrap span12" name="stuAffiliatedAdviser">
												<option value="0">请选择</option>
												<option value="2" th:value="${adviser.id}" th:each="adviser:${adviserList}" th:selected="${student.stuAffiliatedAdviser} eq ${adviser.id}" th:text="${adviser.staffRealName}">女</option>
											</select>
										</div>
									</div>
								</div>
							</div>
							<div class="row-fluid">
								<div class="span12">
									<div class="control-group">
										<label class="control-label">基本情况</label>
										<div class="controls">
											<textarea class="span6 m-wrap" rows="5"
												th:text="${student.stuBasicInfo}" name="stuBasicInfo"></textarea>
										</div>
									</div>
								</div>
							</div>
							<h3 class="form-section" style="margin-left: 10px;">
								<i class="icon-bookmark"> 学员其他资料 </i>
							</h3>
							<div class="row-fluid">
								<div class="span4">
									<div class="control-group">
										<label class="control-label">组别:</label>
										<div class="controls">
											<select class="m-wrap span12" name="stuGroup">
												<option value="A组" th:selected="${student.stuGroup} eq 'A组'">A组</option>
												<option value="B组" th:selected="${student.stuGroup} eq 'B组'">B组</option>
											</select>
										</div>
									</div>
								</div>
								<div class="span4">
									<div class="control-group">
										<label class="control-label">接待人:</label>
										<div class="controls">
											<select class="m-wrap span12" name="stuReceptionist">
												<option value="0">请选择</option>
												<option value="2" th:each="person:${receptionist}" th:value="${person.id}" th:selected="${student.stuReceptionist} eq ${person.id}" th:text="${person.staffRealName}">孙俪</option>
											</select>
										</div>
									</div>
								</div>
								<div class="span4">
									<div class="control-group">
										<label class="control-label">目前积分:</label>
										<div class="controls">
											<input type="text" class="m-wrap span12"
												name="stuCurrentScore" th:value="${student.stuCurrentScore}">

										</div>
									</div>
								</div>

							</div>
							<div class="row-fluid">
								<div class="span4">
									<div class="control-group">
										<label class="control-label">推广日期:</label>
										<div class="controls">

											<div class="input-append date date-picker"
												data-date="12-02-2012" data-date-format="dd-mm-yyyy"
												data-date-viewmode="years">

												<input class="m-wrap m-ctrl-medium date-picker" readonly=""
													size="16" type="text" value=""
													th:value="${student.stuJoinDate != null} ?${#calendars.format(student.stuJoinDate,'yyyy-MM-dd')}:'2017-4-28'"><span
													class="add-on"><i class="icon-calendar"></i></span>

											</div>

										</div>
									</div>
								</div>
								<div class="span5">
									<div class="control-group">
										<label class="control-label">到访后跟进方式:</label>
										<div class="controls">
											<select class="m-wrap span12" name="stuFollowStyle">
												<option value="0">请选择</option>
												<option value="" th:value="${follow.id}"
													th:each="follow:${followList}"
													th:text="${follow.followParam}"
													th:selected="${student.stuFollowStyle} eq ${follow.id}">女</option>
											</select>
										</div>
									</div>
								</div>

							</div>
							<div class="row-fluid">
								<div class="span7">
									<div class="control-group">
										<label class="control-label">学校:</label>
										<div class="controls">
											<input type="text" class="m-wrap span12" name="stuSchool" th:value="${student.stuSchool}">

										</div>
									</div>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- END PAGE CONTENT-->


	<!-- BEGIN CORE PLUGINS -->
	<script src="/media/js/jquery-1.10.1.min.js" type="text/javascript"></script>
	<script src="/media/js/jquery-migrate-1.2.1.min.js"
		type="text/javascript"></script>
	<script src="/media/js/bootstrap.min.js" type="text/javascript"></script>

	<script type="text/javascript" src="/media/js/bootstrap-datepicker.js"></script>
	<script type="text/javascript" src="/media/js/chosen.jquery.min.js"></script>


	<script type="text/javascript"
		src="/media/js/bootstrap-datepicker.zh-CN.js"></script>
	<script src="/media/js/app.js"></script>
	<script src="/media/js/studentedit.js"></script>


	<script>
		jQuery(document).ready(function() {
			App.init();
			StudentEdit.init();
		});
	</script>

	<!-- END JAVASCRIPTS -->
</body>

<!-- END BODY -->

</html>